package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectLogUpdateRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-11-14
 * @Version: 1.0
 * Table: pear_project_log
 * Comment:
 * 项目日志表
 */
public class ProjectLogUpdateRequestConvert extends BaseConvert {
    public static ProjectLogWithBLOBs convert(ProjectLogUpdateRequest request) throws Exception {
        ProjectLogWithBLOBs daoRequest = new ProjectLogWithBLOBs();
        copyProperties(request, daoRequest);

        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setType(daoRequest.getType() == null ? null : daoRequest.getType().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setSourceCode(daoRequest.getSourceCode() == null ? null : daoRequest.getSourceCode().trim());
        daoRequest.setActionType(daoRequest.getActionType() == null ? null : daoRequest.getActionType().trim());
        daoRequest.setToMemberCode(daoRequest.getToMemberCode() == null ? null : daoRequest.getToMemberCode().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setIcon(daoRequest.getIcon() == null ? null : daoRequest.getIcon().trim());
        daoRequest.setContent(daoRequest.getContent() == null ? null : daoRequest.getContent().trim());
        daoRequest.setRemark(daoRequest.getRemark() == null ? null : daoRequest.getRemark().trim());

        return daoRequest;
    }
}
